package com.emmmya.pojo;

import com.emmmya.harinCheck.annotation.Check;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author Harin
 * @version 1.0
 * @date 2022-05-09 14:44:28
 */
@Data
public class User {
    @Check(name="用户名")
    private String username;

    @Check(name="密码")
    private String password;

    @Check(name="年龄")
    private Integer age;

    @Check(name="性别")
    private String sex;

    @Check(name="注册时间")
    private Date createDate;

    @Check(name="状态",enumValues = com.emmmya.harinCheck.pojo.staus.class)
    private Integer status;

    @Check(name="角色")
    private List<Role> roles;


    public User() {
    }

    public User(String username, String password, Integer age, Date createDate) {
        this.username = username;
        this.password = password;
        this.age = age;
        this.createDate = createDate;
    }
}
